<template>
	<view>
		<web-view style="display: flex;flex: 1" :webview-styles="webviewStyles"
			:src="`https://im.linglinggong.net/chat/say/redchat.html?cuid=0&uname=0&gid=1&wname=0&uid=${userid}&du=2`">
		</web-view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				userid: 0,
				webviewStyles: {},
				isShowAlert: true
			}
		},
		methods: {
			close() {
				this.isShowAlert = false
			},
		},
		onLoad(v) {
			this.userid = v.userId
		},
		onShareAppMessage() {
			if (uni.getStorageSync('userType') == 1) {
				return {
					title: "足不出户，免费招工",
					desc: "线上招募零工，工价透明，免费使用",
					path: `/pages/start-n/start-n`,
					imageUrl: 'https://images.linglinggong.net/static/employer-share.jpg',
					success: res => {}
				}
			} else {
				return {
					title: "在家找日结兼职，工种齐全",
					desc: "免费使用，提前在家找日结兼职",
					path: `/pages/start-n/start-n`,
					imageUrl: 'https://images.linglinggong.net/static/employee-share.jpg',
					success: res => {}
				}
			}
		},
	}
</script>
<style scoped>
</style>